#ifndef FILE_SAVER_H
#define FILE_SAVER_H

#include <fstream>
#include <QtCore>
#include <QDebug>

class file_saver
{
    private:
        std::fstream file;
        long long buffer;
        short indicator;
        unsigned char byte;
    public:
        file_saver();
        void open(QString path);
        void save(int value, int length);
        void close(void);
};

#endif // FILE_SAVER_H
